<template>

  <mk-page type="loading-view" title="Loading">
    <div slot="content">
      <div class="demo-loading">
        <mk-button @click="test1" size="large">点击测试</mk-button>
      </div>
    </div>
  </mk-page>
</template>
<script>
import MkPage from '../components/mk-page.vue'
export default {
  name: 'demo-loading',
  data() {
    return {}
  },
  mounted() {},
  components: {
    MkPage
  },
  watch: {},
  methods: {
    test1() {
      let self = this
      self.$loading.show()
      setTimeout(() => {
        self.$loading.hide()
      }, 1000)
    }
  }
}
</script>
